package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

@Getter
@Setter
@ToString
public class ApprovePrintSubSummaryGetDTO extends BaseDTO {

    private static final long serialVersionUID = -7621113411908729137L;

    /**
     * 应用id
     */
    private Long appId;

    /**
     * 菜单id
     */
    private Long menuId;
    /**
     * 表单id
     */
    @NotNull(message = "表单id不能为空")
    private Long formId;

    /**
     * 子表单的attr
     */
    @NotNull(message = "子表单的attr不能为空")
    private String attr;

    /**
     * 是否是saas 1：saas  2：paas
     */
    @DecimalMin(value = "1", message = "saasMark的值只能为1，2")
    @DecimalMax(value = "2", message = "saasMark的值只能为1，2")
    @NotNull(message = "saas标记不能为空")
    private Integer saasMark;

    /**
     * saas业务类型
     */
    private Integer businessType;

    /**
     * 流程任务id
     */
    @NotNull(message = "流程任务节点id不能为空")
    private Long processNodeTaskId;

    /**
     * 表单数据
     */
    @NotNull(message = "流程任务id不能为空")
    private Long processTaskId;

    /**
     * 流程类型
     */
    @NotNull(message = "流程类型不能为空")
    private String processType;

    private Boolean fromDingtalk;

    private Integer approvePrint;

    /**
     * 是否是工作流，0老审批，1工作流
     */
    private Integer isWorkflow;

    public ApprovePrintSubSummaryGetDTO(){
        fromDingtalk = false;
        approvePrint = 1;
    }
}